package com.oglvip.business.util;

import com.google.common.collect.Maps;
import com.oglvip.business.remote.service.entity.StoreAccount;

import java.util.Map;

/**
 * @auther hanchao
 * @date 2016/12/10 10:36
 */
public class CookieHolder {
    //TODO
    //cache的过期策略
    private static Map<String,StoreAccount> COOKIE_STORE = Maps.newConcurrentMap();
    public static void put(String key,StoreAccount value){
        COOKIE_STORE.put(key,value);
    }
    public static StoreAccount get(String key){
        return COOKIE_STORE.get(key);
    }
    public static void remove(String key){
        COOKIE_STORE.remove(key);
    }
}
